package com.ks.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author dCoder
 * @since 2022-04-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Ingredient对象", description="")
public class Ingredient implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "食材ID")
    @TableId(value = "ingredient_id", type = IdType.ID_WORKER_STR)
    private String ingredientId;

    @ApiModelProperty(value = "食材名称")
    private String ingredientName;

    @ApiModelProperty(value = "食材类型（0为荤，1为素）")
    private Integer ingredientType;

    @ApiModelProperty(value = "卡路里/kg")
    private Integer calorie;


}
